package ai.mspbots.service.report.entity;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class QueryEntity implements Serializable {

    private Long id;

    private String name;

    private String type = "query";

    public static QueryEntity of(Long id) {
        QueryEntity queryEntity = new QueryEntity();
        queryEntity.setId(id);
        queryEntity.setName(IdUtil.randomUUID());
        return queryEntity;
    }
}
